package org.jeecg.modules.inspection.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.jeecg.modules.inspection.entity.Accept;

import org.jeecg.modules.inspection.entity.PinspectionException;
import org.jeecg.modules.inspection.entity.PinspectionItem;
import org.jeecg.modules.inspection.mapper.PinspectionItemMapper;
import org.jeecg.modules.inspection.service.IPinspectionItemService;

import org.jeecg.modules.inspection.util.RestUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * @Description: 巡检运行检查项目
 * @Author: jeecg-boot
 * @Date:   2019-09-26
 * @Version: V1.0
 */
@Service
public class PinspectionItemServiceImpl extends ServiceImpl<PinspectionItemMapper, PinspectionItem> implements IPinspectionItemService {
    @Autowired
    private PinspectionItemMapper pinspectionItemMapper;

    @Autowired
    private RestUtil restUtil;
    @Override
    public Integer updateBatch(List<PinspectionItem> items) {
        return pinspectionItemMapper.updateBatch(items);
    }

    @Override
    public List<PinspectionItem> selectByProcessId(String processId) {
        return pinspectionItemMapper.selectByProcessId(processId);
    }

    @Override
    public List<Accept> selectExceptionItemByProjectId() {
        return pinspectionItemMapper.selectExceptionItemByProjectId();
    }

    @Override
    public String selectProjectName(String projectName) {
        return pinspectionItemMapper.selectProjectName(projectName);
    }

    @Override
    public Integer updateStatus(String processItemId) {
        return pinspectionItemMapper.updateStatus(processItemId);
    }

    @Override
    public List<PinspectionException> queryExistExpection(String processItemId) {
        return pinspectionItemMapper.queryExistExpection(processItemId);
    }

    @Override
    public void updateNormal(String processItemId) {
        pinspectionItemMapper.updateNormal(processItemId);
    }


}
